package cn.com.bluemoon.daps.model.utils.factory.impl.field;

import cn.com.bluemoon.daps.common.enums.DatabaseType;
import cn.com.bluemoon.daps.model.entity.DapDataModelTableField;
import cn.com.bluemoon.daps.model.utils.factory.FieldScriptFactory;
import cn.com.bluemoon.daps.model.utils.factory.impl.key.MysqlKeyScript;

import java.util.List;
import java.util.Map;

/**
 * @author karry
 * @Data 2021/9/3
 * @Time:14:54
 */
public class MysqlFieldScript extends AbsFieldScript {

    @Override
    public String createFieldScript(List<DapDataModelTableField> fields) {
        return createFieldPublicCode(fields, DatabaseType.MYSQL);
    }

    @Override
    public void addFieldScript(List<DapDataModelTableField> fields, String schema,
                                 String tableName, Map<String, String> map) {


    }

    @Override
    public String modifyFieldScript(DapDataModelTableField nf, DapDataModelTableField of, String tableName, String schema) {
        return null;
    }

    @Override
    public void deleteFieldScript(List<DapDataModelTableField> fields,
                                  String schema, String tableName,
                                  Map<String, String> map) {
    }

}
